# source: https://github.com/archlinux/svntogit-packages/blob/packages/libpaper/trunk/PKGBUILD

# add systemwide default papersize read by many office applications
install -dm 755 "$PKG"/etc
echo '# Simply write the paper name. See papersize(5) for possible values' > "$PKG"/etc/papersize

# add libpaper.d directory other packages can use to store files
install -dm 755 "$PKG"/etc/libpaper.d

# add localisation
pushd debian/po
for i in `ls *.po`; do
	install -dm 755 "${PKG}"/usr/share/locale/${i%.po}/LC_MESSAGES/;
	msgfmt $i -o "${PKG}"/usr/share/locale/${i%.po}/LC_MESSAGES/${pkgname}.mo;
done
popd
